<?php

function sub($str){
    
    if( strlen($str) >130 ){
        $str = substr($str,0,130).'...';
    }
    return $str;
}

function enc($str){
    return password_hash($str,PASSWORD_DEFAULT );
}